home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat4 / hosts.z / hosts
Encoding:
Text File  |  2002-10-03  |  3.2 KB  |  133 lines

  1.  
  2.  
  3.  
  4. hhhhoooossssttttssss((((4444))))                                                              hhhhoooossssttttssss((((4444))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      hosts - hostname-address database
  10.  
  11. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  12.      The /_e_t_c/_h_o_s_t_s file contains information regarding the known hosts on the
  13.      network.  For each host a single line should be present with the
  14.      following information:
  15.  
  16.           +o  Internet address
  17.  
  18.           +o  official hostname
  19.  
  20.           +o  aliases (optional)
  21.  
  22.      Items are separated by any number of blanks and/or tab characters.  A ####
  23.      indicates the beginning of a comment; characters up to the end of the
  24.      line are not interpreted by routines that search the file.  For example,
  25.  
  26.           192.0.2.2   iris.widgets.com   iris
  27.  
  28.      This file must include entries for all of the machine's network
  29.      interfaces, the localhost address and a few important machines on the
  30.      local network.  _i_f_c_o_n_f_i_g(1M) uses this file when assigning addresses to
  31.      the network interfaces during system initialization.
  32.  
  33.      By default, this file is used by _g_e_t_h_o_s_t_b_y_n_a_m_e(3N) and _g_e_t_h_o_s_t_b_y_a_d_d_r(3N)
  34.      only when the NIS or the Berkeley Internet name server (_n_a_m_e_d(1M)) are
  35.      not enabled.  The system can be configured to use NIS, _n_a_m_e_d, and/or this
  36.      file, as described in _r_e_s_o_l_v_e_r(4).
  37.  
  38.      If the host is not connected to any network, the file should contain an
  39.      entry defining the hostname as an alias for the localhost entry.  For
  40.      example, if the hostname is IRIS, the /_e_t_c/_h_o_s_t_s file should contain this
  41.      line:
  42.  
  43.           127.1   localhost   IRIS
  44.  
  45.      Sites connected to the Internet should configure the system to use the
  46.      name server.  This file can be created from the official host database
  47.      maintained at the Network Information Center (NIC), though local changes
  48.      may be required to bring it up to date regarding unofficial aliases
  49.      and/or unknown hosts.  The host database maintained at NIC is incomplete.
  50.  
  51.      Network addresses are specified in the conventional dot (.) notation
  52.      using the _i_n_e_t__a_d_d_r() routine from the Internet address manipulation
  53.      library, _i_n_e_t(3N).  Legal hostnames can contain any alphanumeric
  54.      character, the minus sign (-) and period (.).  Periods are not part of
  55.      the name but serve to separate components of a domain-style name.
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. hhhhoooossssttttssss((((4444))))                                                              hhhhoooossssttttssss((((4444))))
  71.  
  72.  
  73.  
  74. FILES
  75.      /etc/hosts
  76.  
  77. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  78.      ifconfig(1M), named(1M), gethostbyname(3N), resolver(4), sys_id(4),
  79.      hostname(5).
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.